package com.java.second_goods.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import lombok.Data;
import lombok.EqualsAndHashCode;

/**
 * 轮播图对象 tb_banner
 */
@Data
@EqualsAndHashCode(callSuper = true)
@TableName("tb_banner")
public class Banner extends BaseEntity {
    private static final long serialVersionUID = 1L;

    /** 轮播图ID */
    @TableId(value = "id", type = IdType.AUTO)
    private Integer id;

    /** 图片URL */
    private String image;

    /** 标题 */
    private String title;

    /** 类型：promo-活动,chef-厨师,menu-菜单 */
    private String type;

    /** 关联ID */
    private Integer linkId;

    /** 排序 */
    private Integer sortOrder;

    /** 状态：1-有效，0-无效 */
    private Integer status;
}